<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Sql injection result</title>
</head>
<body>
	<h1>Security Design Patterns</h1>
	<h2>Sample 1 - Mitigate Sql Injection with ESAPI : Result</h2>
	<hr>
	<div style="padding: 10px;">Sanitize no javaScript: <bean:write name="sample1Form" property="sanitizeNoJavascript" /></div>
	<div style="padding: 10px;">Validate for html: <bean:write name="sample1Form"  property="validateForHtml" /></div>
	<div style="padding: 10px;">Encode for Html in filter: <bean:write name="sample1Form"  property="encodeForHtmlInFilter" /></div>
	<div style="padding: 10px;">Encode for Html in action: <bean:write name="sample1Form"  property="encodeForHtmlInAction" /></div>
	<hr>
	<div style="padding: 10px;">Html with JavaScript: <bean:write name="sample1Form" property="htmlWithJSInScript" filter="false"/></div>
	<div style="padding: 10px;">Html with JavaScript in div: <bean:write name="sample1Form" property="htmlWithJSInDiv" filter="false"/></div>

	<a href="./index.jsp">home</a>

</body>
</html>